package com.yaoxun.console.runner;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;
import org.springframework.stereotype.Component;

import com.yaoxun.console.service.SuperUserService;

@Component
public class InitSuperUserRunner implements CommandLineRunner {
	
	@Autowired
	private SuperUserService superUserService;
	
	@Override
	public void run(String... args) throws Exception {
		superUserService.init();
	}

}
